<template>
	<view>
		<video :src="info.video" style="height: 420rpx;width: 750rpx;"></video>
		<u-gap height="20rpx"></u-gap>
		<view class="u-p-30" style="padding-top: 0;">
			<view class="u-flex-y-center u-flex-between">
				<view class="u-f-30 u-bold">{{info.name}}</view>
				<view class="u-f-24 u-c-999">{{$u.timeFormat(info.createtime, 'yyyy-mm-dd')}}</view>
			</view>
			<u-gap height="30rpx"></u-gap>
			<view class="u-flex-y-center">
				<view :style="info.type==1?'color: #19C898;':'color: #EA4D44;'" class="u-f-26">{{info.type==1?'胜利':'失败'}}</view>
				<view class="u-flex-y-center u-m-l-30 ">
					<image src="/static/down_bi.png" style="width: 26rpx;height: 26rpx;margin-right: 12rpx;"></image>
					<view style="color: #F09639;" class="u-f-26">获得{{info.score}}经验值</view>
				</view>
			</view>
		</view>
	</view>
</template>


<script>
	export default {
		data() {
			return {
				
				info:{},
				id:0
				
			}
		},
		onLoad(e) {
			this.id = e.id
			this.getInfo()
		},
			
		methods: {
			async getInfo(){
				let url;
				url = 'user/battleInfo'
				let res= await uni.$u.http.post(url,{id:this.id});
				this.info = res
			},
		}
	}
</script>



<style>
</style>